package com.learn.training.multithread.chapter4.demo3;

public class HelloThread extends Thread {
    public volatile boolean running = true;

    @Override
    public void run() {
        int n = 0;
        while (running){
            n++;
            System.out.println(n + "   hello");
        }
        System.out.println("end");
    }
}
